package com.example.yiparkapplication.util;

import android.app.AlertDialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.example.yiparkapplication.R;

public class ProgressDialogUtil {

    private static AlertDialog mAlertDialog;

    public static AlertDialog returnProgressDialog(Context context){
        mAlertDialog = new AlertDialog.Builder(context, R.style.CustomProgressDialog).create();
        View loadView = LayoutInflater.from(context).inflate(R.layout.fragment_progress_dialog_layout, null);
        mAlertDialog.setView(loadView, 0, 0, 0, 0);
        mAlertDialog.setCanceledOnTouchOutside(false);
        mAlertDialog.setCancelable(false);
        return mAlertDialog;
    }

    public static void showProgressDialog(Context context){

    }
}
